import {ListQuery} from "@/schemas/invoke.ts";


export const customSizeDefaultQuery = (pageSize: number): ListQuery => ({
    pagination: {page: 1, pageSize: pageSize},
    orderBy: [{field: "id", desc: true}]
})

export const queryFive: ListQuery = customSizeDefaultQuery(5)

export const queryTen: ListQuery = customSizeDefaultQuery(10)